﻿using System.Collections.Generic;

namespace Natural.Providers
{
    public class ServerContext
    {
        public string SolutionName { get; set; }
    }


    public sealed class Server
    {
        private static Dictionary<string, string> parameters = new Dictionary<string, string>();

        public static void AddParameter(string name, string value)
        {
            string key = name.ToUpper();
            if (parameters.ContainsKey(key))
                parameters[key] = value;
            else
                parameters.Add(key, value);
        }
        public static string Parameter(string name)
        {
            string key = name.ToUpper();
            if (parameters.ContainsKey(key)) return parameters[key];
            return null;
        }

        public static ServerContext Context
        {
            get { return new ServerContext() {SolutionName="Test" }; }
        }

        
    }
}
